package com.isorf.service.impl;

import com.isorf.mapper.StudentMapper;
import com.isorf.pojo.Student;
import com.isorf.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {
    //业务逻辑层，调用数据访问层，完成对数据库的操作  Mapper
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public List<Student> getAllStudents() {

        return studentMapper.getAllStudents();
    }
}
